<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>宠物医院</title>
		<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
		<link th:href="@{/css/dashboard.css}" rel="stylesheet">
		<link th:href="@{/img/pet2.jpg}" rel="shortcut icon">
	</head>
	<body>
	<!--顶部导航栏-->
	<div th:replace="~{comment/comment::topbar}"></div>
	<div class="container-fluid">
		<div class="row">
			<!--侧边导航栏-->
			<div th:replace="~{comment/comment::sidebar(active='doctor/doctorList.html')}"></div>
			<!--主视图-->
			<main role="main" class="col-md-9 ml-sm-auto col-lg-11 pt-3 px-4">
				<h2>医生信息列表</h2>
				<div class="table-responsive">
					<table class="table table-striped table-sm">
						<!--表头-->
						<thead align="center">
						<tr>
							<th>工号</th>
							<th>名字</th>
							<th>年龄</th>
							<th>性别</th>
							<th>科室</th>
							<th>从业时间</th>
							<th>介绍</th>
						</tr>
						</thead>
						<!--表身-->
						<tbody align="center">
						<tr th:each="l:${list}">
							<td th:text="${l.getDid()}"></td>
							<td th:text="${l.getdName()}"></td>
							<td th:text="${l.getdAge()}"></td>
							<td th:text="${l.getdSex()==0?'女':'男'}"></td>
							<td th:text="${l.sickroom.getSickroomName()}"></td>
							<td th:text="${l.getServiceTime()}"></td>
							<td th:text="${l.getDescribe()}"></td>
						</tr>
						</tbody>
					</table>
				</div>
			</main>
		</div>
	</div>
	</body>

</html>